document.properties['dlswr:typeFlag'] = "SWRDELETED";
document.save();
//deactivated for now
//var data ='{ title: "'+document.name+'",page:"dlitem-details?nodeRef='+document.nodeRef+'"}';
//activities.postActivity("org.alfresco.csr.csr-deleted", space.parent.parent.name, "csr",data);
